package com.me.seckill.enums;


/**
 * The class Error code enum.
 */
public enum ErrorCodeEnum implements BaseEnum {

	/**
	 * 参数异常
	 */
	GL10100(10100, "参数异常"),
	/**
	 * 未知异常
	 */
	GL10500(10500, "未知异常"),

	/**
	 * 库存不足
	 */
	GL10501(10501, "库存不足，商品ID为：%s"),;

	private final int code;
	private final String msg;

	/**
	 * Msg string.
	 *
	 * @return the string
	 */
	@Override
	public String getMsg() {
		return msg;
	}

	/**
	 * Code int.
	 *
	 * @return the int
	 */
	@Override
	public int getCode() {
		return code;
	}

	ErrorCodeEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

}
